package QL;

import java.util.List;
import java.util.ArrayList;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class ButlerPlayerResourceAddResponse extends BaseQLResponse
{
    /// <summary>
    /// 实际影响数量
    /// </summary>
    public long AffectAmount;

    @Override
    public void DeserializeFromJson(JSONObject jsonObj)
    {
        JSONObject t = jsonObj.getJSONObject("error_response");
        if (t != null && !t.isNullObject())
        {
            ErrCode = t.getString("code");
            ErrMsg = t.getString("msg");
        }
        else
        {
            t = jsonObj.getJSONObject("butler_player_resource_add_response");
            if (t.has("affect_amount"))
                AffectAmount = t.getLong("affect_amount");
        }
    }
}
